to Dynamic Fluid Sp
EN Converts a Number (base value) into a dynamically scaled TextUnit (Sp) for Jetpack Compose.
Scaling logic:
Builds a 64-bit packed cache key.
If fontScale is
true, the result respects the system font size setting.If fontScale is
false(e.g. via .fsem), the system font scale is stripped.Checks DimenCache globally.
PT Converte um Number (valor base) em um TextUnit (Sp) dinamicamente escalado para Compose.
Lógica de escalonamento:
Constrói uma chave de cache de 64 bits.
Se fontScale for
true, o resultado respeita a configuração de tamanho de fonte do sistema.Se fontScale for
false(ex: via .fsem), a escala de fonte do sistema é removida.Consulta o DimenCache globalmente.
Return
Dynamically scaled TextUnit value.
Parameters
Screen dimension qualifier.
Whether to respect the user's system font scale.
Orientation-based dimension swap rule.
If true, returns base value unscaled when in split-screen.
If true, applies the aspect-ratio multiplier.
Custom AR sensitivity constant.